package tianrun.ziguan.api.calculate.config.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

/**
 * 计算表达式配置表
 *
 * @author zhaoqi
 */
public class BaseExpression {


    /**
     * 主键Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 计算点
     */
    @TableField("cal_label")
    private String calLabel;

    /**
     * 公式(表达式)
     */
    @TableField("expression")
    private String expression;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 关系表；t_indicators_instance自定义指标实例
     */
    @TableField("relation_table")
    private String relationTable;

    /**
     * 关系表id
     */
    @TableField("relation_id")
    private Long relationId;

    /**
     * 是否有效；0无效，1有效
     */
    @TableLogic(value = "true",delval = "false")
    @TableField("is_valid")
    private Boolean isValid;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCalLabel() {
        return calLabel;
    }

    public void setCalLabel(String calLabel) {
        this.calLabel = calLabel;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRelationTable() {
        return relationTable;
    }

    public void setRelationTable(String relationTable) {
        this.relationTable = relationTable;
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public Boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(Boolean isValid) {
        this.isValid = isValid;
    }

}
